<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title><g:layoutTitle default="Grails" /></title>
        
        <link rel="stylesheet" href="${resource(dir:'css',file:'dialog.css')}" />
        <link rel="stylesheet" href="${resource(dir:'css',file:'button.css')}" />
        <link rel="stylesheet" href="${resource(dir:'css',file:'base.css')}" />
        <link rel="stylesheet" href="${resource(dir:'css',file:'publicSkin.css')}" />
        <link rel="stylesheet" href="${resource(dir:'css',file:'layout.css')}" />
        <link rel="stylesheet" href="${resource(dir:'css',file:'other.css')}" />
        <link rel="stylesheet" href="${resource(dir:'css',file:'tipsy.css')}" />
        <link rel="stylesheet" href="${resource(dir:'css',file:'colorbox.css')}" />

        <g:javascript library="jquery" plugin="jquery"/>
        
        <g:javascript src="jquery.tipsy.js" type="text/javascript"/>

        

        <g:javascript library="application" />
        
        
        <g:layoutHead />
    </head>
    <body>
       <!-- head start -->
       <div id="topman" class="head">	  
            <div id="label" style="display:inline"></div>  
            <div class="logoNav clearfix">
                <a href='/'><img class="l" src="/images/MokoLogo.gif" title="返回云联盟首页"/></a>
                <span class="font12 borderColor r">
                    <a class="baseWhite" href='/H2O/H2O.exe' style="color:blue;"  rel="tipsy" title="下载云联盟客户端">下载客户端</a>
                    <a class="baseWhite" href='/'>首页</a>|
                            <g:isLoggedIn>
                            <a class="mainWhite weight700" href='javascript:'><g:loggedInUserInfo field="username"/></a>|
                            积分<g:loggedInUserInfo field="total"/> |
                            VIP<g:loggedInUserInfo field="vip"/>级 |
                            <a class="baseWhite" href="/logout">登出</a> |
                            <a class="baseWhite help" href='/help' style="color:blue;">帮助</a>
                            </g:isLoggedIn>
                </span>
            </div>
        </div>
        <!-- head end -->
        <!-- nav start -->
        <ul class="nav clearfix">
            <li id="homepage" class="l ${params.controller == '/index'?'alive':''}"><a class="weight700" href='/'>首 页</a></li>
            <g:isLoggedIn>
                <li id="taskGroup" class="l ${params.controller == 'taskGroup'?'alive':''} ${params.controller == 'task'?'alive':''}"><a class="weight700" href="/taskGroup/list">站点/任务</a></li>
                <g:ifAnyGranted role="ROLE_USER">
                <li id="mokoCp" class="l ${params.controller == 'logs'?'alive':''}"><a class="weight700" href="/logs/flushOther">日志管理</a></li>
                </g:ifAnyGranted>
                <g:ifAnyGranted role="ROLE_ADMIN">
                <li id="user" class="l ${params.controller == 'user'?'alive':''}"><a class="weight700" href='/user'>用户管理</a></li>
                <li id="iplog" class="l ${params.controller == 'iplog'?'alive':''}"><a class="weight700" href='/iplog'>IP日志</a></li>
                <li id="iplog" class="l ${params.controller == 'admin'?'alive':''}"><a class="weight700" href='/admin'>任务管理</a></li>
                <li id="iplog" class="l ${params.controller == 'invite'?'alive':''}"><a class="weight700" href='/invite'>邀请码</a></li>
                <li id="iplog" class="l ${params.controller == 'notice'?'alive':''}"><a class="weight700" href='/notice'>公告管理</a></li>

                 </g:ifAnyGranted>
                <li id="edituser" class="l ${params.controller+params.action == 'registeredit'?'alive':''}"><a class="weight700" href='/register/edit'>信息修改</a></li>
                <li id="editpassword" class="l ${params.controller+params.action == 'registerpassword'?'alive':''}"><a class="weight700" href='/register/password'>密码修改</a></li>
            </g:isLoggedIn>
	    </ul>
        <!-- nav end -->
        <!--主体框架开始 start -->
        <div class="content miniHeight borderOn">
        <g:layoutBody />
        </div>
         <!--主体框架开始 end-->
         <g:javascript  src="jquery.colorbox-min.js" type="text/javascript"/> 
          <script language="javascript">
          <!--
          		$(".help").colorbox({width:"53%", height:"80%", iframe:true});
          //-->
          </script>
    </body>
</html>